package com.ize.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ize.entity.pojo.Doctor;
import com.ize.entity.pojo.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Update;

import java.util.List;

@Mapper
public interface UserMapper extends BaseMapper<User> {
    @Update("update user set openid = #{openid},state=1 where id=#{id}")
    void updateUserState(String openid , Long id);

    List<Doctor> getDoctorInfo(String key,String kezhen);
}
